import axios from 'axios';

// 获取logo
let logo = (params) => axios.get('/logo', { params });

// 获取采单列表
let list = (params) => axios.get('/menusList', { params });

// 消息提示
let notice = (params) => axios.get('/jnotice', { params });

// 首页头部
let header = (params) => axios.get('/home/header', { params });

// 首页订单图表
let order = (params) => axios.get('/home/order', { params });

// 首页用户图表
let user = (params) => axios.get('/home/user', { params });

// 首页商品交易额排行
let rank = (params) => axios.get('/home/rank', { params });

// 获取菜单数据
let menus = (params) => axios.get('/menus', { params });

// 管理员退出
let logout = (params) => axios.get('/setting/admin/logout', { params });

export default {
    logo,
    list,
    notice,
    header,
    order,
    user,
    rank,
    menus,
    logout,
}